// $primary-color: #464d5c;
// $primary-color: #DA70D6;
// $primary-background-color: #ecf5ff;
// $font-family:Helvetica Neue,
// Helvetica,
// PingFang SC,
// Hiragino Sans GB,
// Microsoft YaHei,
// Arial,
// sans-serif;
// 成都银行
$primary-color: #4786c3; //主色调
$font-color:#333; //主要字体颜色
$primary-background-color: #ecf5ff;
$hover-btn-bg-color:#5096da; // 按钮hover颜色
$btn-disabled:#d1e1f0; //按钮禁用状态颜色
$font-family:Microsoft YaHei,
Arial; //字体
$active-color:#b50029; //列表选中后颜色
.el-button--primary.is-disabled,
.el-button--primary.is-disabled:active,
.el-button--primary.is-disabled:focus,
.el-button--primary.is-disabled:hover {
    background: $btn-disabled;
    color: $font-color;
    border-color: $btn-disabled;
}
.mint-button--default:active{
    background-color:#26a2ff;
}
// 转派的头部背景色
.msgTop-bg {
    background-color: $primary-color;
}

// 表格的背景色
// $table-cell-backgroun-color:#edf8ff;
*,
:after,
:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

@import './variables.scss';
@import './element-ui.scss';
@import './btn.scss';
body {
    height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: $font-family;
}

.el-pager li.active {
    // color:'#464d5'
    color: #2393f1
}

.el-button--primary {
    background-color: $primary-color
}

.type-menu {
    color: $primary-color
}

label {
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

* {
    padding: 0;
    margin: 0;
}

.wrapper {
    height: 100%;
}

a {
    text-decoration: none;
}

.container {
    padding-top: 80px;
}

.menu {
    height: 100%;
}

.content {
    padding: 20px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.no-padding {
    padding: 0px !important;
}

.padding-content {
    padding: 4px 0;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.pr-5 {
    padding-right: 5px;
}

.pl-5 {
    padding-left: 5px;
}

.block {
    display: block;
}

.pointer {
    cursor: pointer;
}

.inlineBlock {
    display: block;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

code {
    background: #eef1f6;
    padding: 15px 16px;
    margin-bottom: 20px;
    display: block;
    line-height: 36px;
    font-size: 15px;
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    a {
        color: #337ab7;
        cursor: pointer;
        &:hover {
            // color: rgb(32, 160, 255);
            color: #2393f1;
        }
    }
}

.warn-content {
    background: rgba(66, 185, 131, .1);
    border-radius: 2px;
    padding: 16px;
    padding: 1rem;
    line-height: 1.6rem;
    word-spacing: .05rem;
    a {
        color: #42b983;
        font-weight: 600;
    }
}

//main-container全局样式
.app-container {
    padding: 20px;
}

.components-container {
    margin: 30px 50px;
    position: relative;
}

.pagination-container {
    margin-top: 30px;
}

.text-center {
    text-align: center
}

.sub-navbar {
    height: 50px;
    line-height: 50px;
    position: relative;
    width: 100%;
    text-align: right;
    padding-right: 20px;
    transition: 600ms ease position;
    background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
    .subtitle {
        font-size: 20px;
        color: #fff;
    }
    &.draft {
        background: #d0d0d0;
    }
    &.deleted {
        background: #d0d0d0;
    }
}

.link-type,
.link-type:focus {
    color: #337ab7;
    cursor: pointer;
    &:hover {
        color: rgb(32, 160, 255);
    }
}

.filter-container {
    padding-bottom: 10px;
    .filter-item {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 10px;
    }
}

//refine vue-multiselect plugin
.multiselect {
    line-height: 16px;
}

.multiselect--active {
    z-index: 1000 !important;
}

header {
    width: 100%;
    padding: 0 20px;
    z-index: 1;
    box-sizing: border-box;
}

header::after {
    display: inline-block;
    content: "";
    height: 100%;
    vertical-align: middle
}

.header-logo {
    display: inline-block;
    vertical-align: middle;
}

.fa-icon {
    width: auto;
    height: 1em;
    /* 或任意其它字体大小相对值 */
    /* 要在 Safari 中正常工作，需要再引入如下两行代码 */
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

.fm2-container {
    background: #fff;
    height: 100%;
    border: 1px solid #e0e0e0;
    .el-container {
        height: 100% !important;
    }
    &>.el-container {
        background: #fff;
    }
    .fm2-main {
        position: relative;
        &>.el-container {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
        }
    }
    main {
        padding: 0;
    }
    footer {
        height: 30px;
        line-height: 30px;
        border-top: 1px solid #e0e0e0;
        font-size: 12px;
        text-align: right;
        color: $primary-color;
        background: #fafafa;
        a {
            color: $primary-color;
        }
    }
}

.center-container {
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    .btn-bar {
        height: 45px;
        line-height: 45px;
        font-size: 18px;
        border-bottom: solid 2px #e4e7ed;
        text-align: right;
    }
    .el-main {
        padding: 0;
        position: relative;
    }
}

.components-list {
    padding: 8px 0;
    width: 100%;
    height: 100%;
    .widget-cate {
        padding: 8px 12px;
        font-size: 13px;
    }
    ul {
        position: relative;
        overflow: hidden;
        padding: 0 10px 10px;
        margin: 0;
    }
    .form-edit-widget-label {
        font-size: 12px;
        display: block;
        width: 48%;
        line-height: 26px;
        position: relative;
        float: left;
        left: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin: 1%;
        color: #333;
        border: 1px solid #F4F6FC;
        &:hover {
            color: $primary-color;
            border: 1px dashed $primary-color;
        }
        &>a {
            display: block;
            cursor: move;
            background: #F4F6FC;
            border: 1px solid #F4F6FC;
            .icon {
                margin-right: 6px;
                margin-left: 8px;
                font-size: 14px;
                display: inline-block;
                vertical-align: middle;
            }
            span {
                display: inline-block;
                vertical-align: middle;
            }
        }
    }
}

.widget-form-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    .widget-form-list {
        height: 100%;
        padding-bottom: 150px;
        .widget-view {
            padding: 5px 10px 18px;
            margin: 0;
            position: relative;
            border-left: 5px solid transparent;
            &.is_req {
                .el-form-item__label::before {
                    content: '*';
                    color: #f56c6c;
                    margin-right: 4px;
                }
            }
            &:after {
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                top: 0;
                display: block;
                z-index: 1001;
            }
            &:hover {
                background: $primary-background-color;
                border-left: 5px solid $primary-background-color;
            }
            &.active {
                border-left: 5px solid $primary-color;
                background: #b3d8ff;
            }
        }
        .widget-action-delete {
            position: absolute;
            right: 20px;
            bottom: -35px;
            z-index: 1009;
        }
        .widget-action-clone {
            position: absolute;
            right: 70px;
            bottom: -35px;
            z-index: 1009;
        }
    }
    .widget-grid {
        background: #F4F6FC;
        position: relative;
        border-left: 5px solid transparent;
        padding: 5px;
        margin: 0 !important;
        &.active {
            border-left: 5px solid $primary-color;
            background: #b3d8ff;
        }
    }
    .widget-grid-container {
        &.ghost {
            &::after {
                background: #fff;
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                top: 0;
                display: block;
                z-index: 10;
                content: '';
            }
        }
    }
    .ghost {
        background: #fff;
        border: 1px dashed $primary-color;
        &::after {
            background: #fff;
        }
    }
    li.ghost {
        height: 30px;
        list-style: none;
        font-size: 0;
    }
}

li {
    list-style: none;
}

.widget-config-container {
    position: relative;
    .el-header {
        border-bottom: solid 2px #e4e7ed;
        padding: 0 5px;
    }
    .config-tab {
        height: 45px;
        line-height: 45px;
        display: inline-block;
        width: 145px;
        text-align: center;
        font-size: 14px;
        font-weight: 500;
        position: relative;
        cursor: pointer;
        &.active {
            border-bottom: solid 2px $primary-color;
        }
    }
    .config-content {
        padding: 10px;
        .el-form-item__label {
            padding: 0;
            font-weight: 500;
        }
        .el-form-item {
            border-bottom: solid 1px #e1e1e1;
            padding-bottom: 10px;
        }
    }
    .ghost {
        background: #fff;
        border: 1px dashed $primary-color;
        &::after {
            background: #fff;
            display: block;
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }
    }
    ul {
        margin: 0;
        padding: 0;
    }
    li.ghost {
        list-style: none;
        font-size: 0;
        display: block;
        position: relative;
    }
}

.viewer-container {
    z-index: 99999 !important;
}

.font-size-small {
    font-size: 14px;
}

.line-height-center {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.font-weight {
    font-weight: 800;
}

.el-message-box {
    border: none;
}

// 标题名称
.nav>.font-weight {
    font-weight: 600;
    color: #231815;
    font-size: 18px;
    font-family: Microsoft YaHei;
}


/*弹框*/

.messageBox-prompt-delete {
    width: 430px;
    height: 230px;
    border: none;
    color: white;
}

.messageBox-prompt-delete .el-message-box__header {
    padding: 0 14px 0 20px;
    display: flex;
    justify-content: space-between;
    height: 40px;
    line-height: 40px;
    background-color: $primary-color;
}

.messageBox-prompt-delete .el-message-box__title {
    color: white;
    font-size: 16px;
}

.messageBox-prompt-delete .el-message-box__headerbtn .el-message-box__close {
    color: white;
    background-color: $primary-color;
}

.messageBox-prompt-delete .el-message-box__headerbtn {
    position: absolute;
    top: 30%;
}

.messageBox-prompt-delete .el-message-box__content {
    padding: 0;
}

.messageBox-prompt-delete .el-message-box__message {
    padding: 40px 0;
    font-size: 16px;
    color: #221914;
}

.messageBox-prompt-delete .el-button--default {
    min-width: 130px;
    font-size: 16px;
    border-bottom-left-radius: 14px;
    border-top-right-radius: 14px;
}

.messageBox-prompt-delete .el-button--default {
    border: 1px solid #e2e2e2;
    // background-color:#f5f6fa;
}

.messageBox-prompt-delete .el-button--primary {
    color: white;
    background-color: $primary-color;
    margin-left: 20px;
}

// 表格

/* 表格的高度，字体大小，颜色 */

.el-button--mini,
.el-button--mini.is-round {
    margin: 0 15px;
}

.el-icon-delete,
.el-icon-edit {
    margin-right: 6px;
    font-size: 16px;
}

.el-table td,
.el-table th {
    font-size: 14px;
    /* height:40px;
  padding:0; */
}

.el-button [class*=el-icon-]+span {
    margin-left: 0;
}

.el-button--text {
    line-height: 16px;
    font-size: 14px;
}

// 按钮
.common-btn30 {
    min-width: 100px;
    height: 34px;
    line-height: 28px;
    // margin-left:10px;
    border-bottom-left-radius: 18px;
    border-top-right-radius: 18px;
}

//左方向
.header-text .el-icon-arrow-left-sign {
    font-size: 16px;
    color: #b60028;
    font-weight: 700;
    margin-right: 10px;
}

// 表格下方元素距离表格的间距
.page-foot-spacing {
    padding: 20px 0;
}


/* 分页 */

.el-pagination-style.is-background .el-pager li:not(.disabled).active {
    background-color: #ecedf2;
    color: #2d2d2d;
    font-size: 14px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 12px;
}

.el-pagination-style.is-background .btn-next,
.el-pagination-style.is-background .btn-prev,
.el-pagination-style.is-background .el-pager li {
    background-color: white;
}

// elementui的文字悬浮tag出现蓝色的边框
:focus {
    outline: 0;
}

// // 滑过表格显示的高亮
// .el-table--enable-row-hover .el-table__body tr:hover>td{
//   background-color: $table-cell-backgroun-color !important;
//   // border-top:1px solid #2393f1 !important;
//   // border-bottom:1px solid #2393f1 !important;
// }
// // 点击时的效果
// .el-table__body tr.current-row>td{
//   background-color:$table-cell-backgroun-color !important;
//   // border-top:1px solid #2393f1 !important;
//   // border-bottom:1px solid #2393f1 !important;
// }
.header-text .el-icon-arrow-left {
    font-size: 16px;
    color: $active-color;
    font-weight: 700;
}

.is-active {
    color: $active-color;
}

.el-menu-item.is-active {
    font-weight: bold;
    color: $active-color;
}

.is-active>.work-order-dot {
    background-color: $active-color !important;
}

.common-btn25 {
    min-width: 65px;
    height: 28px;
    font-size: 13px;
    line-height: 25px;
    margin-top: 4px;
    border-bottom-left-radius: 18px;
    border-top-right-radius: 18px;
}

.el-menu--horizontal>.el-menu-item.is-active {
    color: $primary-color;
    border-color: $primary-color;
}

.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,
.el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
    color: $primary-color;
}

.el-button--primary:focus,
.el-button--primary:hover {
    background-color: $hover-btn-bg-color;
}

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: $primary-color;
    border-color: $primary-color;
}